package com.keyidea.jfxui.core.util;

import com.keyidea.jfxui.core.system.sqlite.entity.SysUser;

public class TokenUtils {

    private static SysUser CURRENT_USER = null;

    public static void setCurrentUser(SysUser sysUser) {
        CURRENT_USER = sysUser;
    }

    public static SysUser getCurrentUser() {
        return CURRENT_USER;
    }

    public static Long getCurrentUserId() {
        return CURRENT_USER.getUserId();
    }

    public static String getCurrentUserName() {
        return CURRENT_USER.getUserName();
    }
}
